import {request} from "../request";

export function getCurrentUser(){
    return request({
        url:'/sys/user/info',
       // url:'/demo/warehouse/page',
        method:'get'
    })
}
export function getUserById(id){
    return request({
        url:`/sys/user/${id}`,
        // url:'/demo/warehouse/page',
        method:'get'
    })
}

export function putUserPassword(data){
    return request({
        url:'/sys/user/password',
        method:'put',
        data:data
    })
}

export function getUserList(data){
    return request({
        url:'/sys/user/page',
        method:'put',
        data:data
    })
}

export function putUser(data){
    return request({
        url:'/sys/user',
        method:'put',
        data:data
    })
}
export function postUser(data){
    return request({
        url:'/sys/user',
        method:'post',
        data:data
    })
}

export function deleteUser(data){
    return request({
        url:`/sys/user`,
        method:'delete',
        data:data
    })
}
export function exportUser(data){
    return request({
        url:`/sys/user/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
